package com.zjhn.ds.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.param
 * @Author: sxt
 * @CreateTime: 2023-09-07  13:57
 * @Description: 新增/更新 车间 入参
 * @Version: 1.0
 */
@Data
public class AddUpdateWorkshopParam {

    @ApiModelProperty("车间id 为空表示新增")
    @JsonProperty("workshop_id")
    private String workshopId;

    @ApiModelProperty("车间名称")
    @NotBlank(message = "车间名称不能为空")
    private String name;

    @ApiModelProperty("车间主任id")
    @JsonProperty("director_id")
    private String directorId;

    @ApiModelProperty("车间行数")
    @JsonProperty("line_number")
    @NotNull(message = "车间行数不能为空")
    private Integer lineNumber;

    @ApiModelProperty("车间列数")
    @JsonProperty("column_number")
    @NotNull(message = "车间列数不能为空")
    private Integer columnNumber;

}
